package com.king.log4j;

import org.apache.log4j.Logger;

/**
 * Log4j Test
 * @author taomk
 * @version 1.0
 * @since 15-10-15 上午11:05
 */
public class Log4jTest {

	private static final Logger logger = Logger.getLogger(Log4jTest.class);

	public static void main(String[] args) {
		if (logger.isTraceEnabled()) {
			logger.debug("log4j trace message");
		}
		if (logger.isDebugEnabled()) {
			logger.debug("log4j debug message");
		}
		if (logger.isInfoEnabled()) {
			logger.debug("log4j info message");
		}
	}
}